/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jili.ubert.client;

import static com.jili.ubert.client.UbertClient.clientapi;
import com.jili.ubert.client.ui.PlatformInfo;
import com.jili.ubert.client.ui.login1.LoginUIController;
import com.jili.ubert.clientapi.until.AnswerHandler;
import com.jili.ubert.clientapi.ClientAPI;
import java.io.IOException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 *
 * @author ChengJili
 */
public class TestNettyClient {

    private static final Log log = LogFactory.getLog(TestNettyClient.class);

    public static void main(String[] args) throws IOException {
        /*
        clientapi = new ClientAPI();
        if (clientapi.ConnectTradeServer("127.0.0.1", 3773).isSuccess()) {
            AnswerHandler<String> handler = new AnswerHandler<String>() {
                @Override
                public void OnAnwer(String anwer) {
                    log.info("验证码为：" + anwer);
                }
                @Override
                public void IsSuccess() {
                }
                @Override
                public void IsFalse() {
                }
            };
            clientapi.getVerlidCode(handler);

        }
                */
        log.info(PlatformInfo.getWinUseWidth());
        log.info(PlatformInfo.IS_WINDOWS);
        log.info(PlatformInfo.getWinUseHeight());
        log.info(PlatformInfo.getoSName());
    }
}
